package com.fcai.microserv.model;

/**
 * 公共的微服务返回码<
 *
 * @author wangbin
 * @since 1.0
 */
public class CommonRespCode {

    /**
     * 成功响应码，表示调用服务正常成功返回
     */
    public static final ServiceRespModel SUCCESS = new ServiceRespModel("success", "成功");

    /**
     * 错误响应码，表示调用服务错误
     */
    public static final ServiceRespModel ERROR = new ServiceRespModel("error", "失败");

    /**
     * 请求方法不支持
     */
    public static final ServiceRespModel NOT_SUPPORT = new ServiceRespModel("not_support", "请求方法不支持");

    /**
     * 请求参数错误
     */
    public static final ServiceRespModel PARAMS_INVALID = new ServiceRespModel("params_invalid", "请求参数错误");

    /**
     * 请求资源未找到
     */
    public static final ServiceRespModel NOT_FOUNT = new ServiceRespModel("not_found", "请求资源未找到");

    /**
     * 未知错误
     */
    public static final ServiceRespModel UNKNOWN_ERR = new ServiceRespModel("unknown_error", "未知错误");

    /**
     * 认证失败
     */
    public static final ServiceRespModel AUTH_FAIL = new ServiceRespModel("auth_failure", "认证失败");

    /**
     * 权限不足
     */
    public static final ServiceRespModel NONE_PERMISSION = new ServiceRespModel("none_permission", "权限不足");

}
